package com.example.loggingservice.mapper;

import com.example.loggingservice.entity.OperationLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface OperationLogMapper {


    List<OperationLog> findByUserId(@Param("userId") Long userId);

    List<OperationLog> findByAction(@Param("action") String action);

    List<OperationLog> findAll();

    int insert(OperationLog operationLog);
}
